import request from '@/utils/request'
//  订单列表
export function getOrderList(params) {
  return request({
    url: '/cloudApi/order/getOrderList',
    method: 'get',
    params
  })
}

/**
 * 订单详情
 */
export function getOrderData(params) {
  return request({
    url: '/cloudApi/order/getOrderData',
    method: 'get',
    params
  })
}
/**
 *  取消订单
 */
export function cancelOrder(data) {
  return request({
    url: '/cloudApi/order/cancelOrder',
    method: 'post',
    data
  })
}

/**
 * 批量更改订单状态
 */

export function updateStatusBatch(data) {
  return request({
    url: '/cloudApi/order/updateStatusBatch',
    method: 'post',
    data
  })
}

/**
 * 更改订单状态
 */
export function updateStatus(data) {
  return request({
    url: '/cloudApi/order/updateStatus',
    method: 'post',
    data
  })
}

/**
 * 运单详情
 */
export function getDeliveryDetail(params) {
  return request({
    url: '/cloudApi/delivery/getDelivery',
    method: 'get',
    params
  })
}
